{notempty name="$goodsList"}
<div class="memgift-comment-table mt15">
    <div class="memgift-table-wrapper mb15">
        <div class="memgift-table memgift-table-default">
            <div class="memgift-table-header">
                <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
                    <thead>
                    <tr>
                        <th>
                            <div class="memgift-table-con">
                                <span>商品名称</span>
                            </div>
                        </th>
                        <th class="w200">
                            <div class="memgift-table-con">
                                <span>商品价格</span>
                            </div>
                        </th>
                        <th class="w100">
                            <div class="memgift-table-con">
                                <span>现库存</span>
                            </div>
                        </th>
                        <th class="w400">
                            <div class="memgift-table-con">
                                <div class="memgift-table-con-flex">
                                    <p class="table-title-integral">秒杀库存</p>
                                    <p class="table-title-stock">秒杀价格</p>
                                </div>
                            </div>
                        </th>
                        <th class="w100"> <div class="memgift-table-con"><span>操作</span> </div> </th>
                    </tr>
                    </thead>
                </table>
            </div>

            <div class="memgift-table-body">
                <table cellspacing="0" cellpadding="0" border="0">
                    <tbody class="memgift-table-tbody">
                    <!--商品填充-->
                    {volist name="$goodsList" id="vo"}
                    <tr draggable="false" class="memgift-table-row" id="tr_{$vo.aid}">
                        <input type="hidden" name="goods_id[{$vo.goods_id}]" value="{$vo.goods_id|default=''}">
                        <input type="hidden" name="is_spec[{$vo.goods_id}]" value="{$vo.is_spec}">
                        <input type="hidden" name="spec_set[{$vo.goods_id}]" value="{$vo.spec_set}" id="goodsSpecSet_{$vo.goods_id}">
                        <input type="hidden" name="title[{$vo.goods_id}]" value="{$vo.title}">
                        <td>
                            <div class="memgift-table-con">
                                <div class="pro-title">
                                    <div class="pro-img">
                                        <img src="{$vo.litpic}" alt="" >
                                    </div>
                                    <p class="pro-name" title="{$vo.title}">{$vo.title}</p>
                                </div>
                            </div>
                        </td>
                        <td class="w200">
                            <div class="memgift-table-con">
                                <p>{$vo.price}</p>
                            </div>
                        </td>
                        <td class="w100">
                            <div class="memgift-table-con">
                                <p>{$vo.stock}</p>
                            </div>
                        </td>
                        <td class="w400">
                            <div class="memgift-table-con">
                                {eq name="$vo.is_spec" value="0"}
                                    <div class="memgift-table-con-flex">
                                        <div class="table-input">
                                            <div class="memgift-form-item">
                                                <div class="memgift-form-item-content">
                                                    <input type="text" class="text-input" name="seckill_stock[{$vo.goods_id}]" value="{gt name='$vo.seckill_stock' value='0'}{$vo.seckill_stock}{/gt}" {eq name="$fetch" value="view"}disabled{/eq} onkeyup="this.value=this.value.replace(/[^\d\,]/g,'');" onpaste="this.value=this.value.replace(/[^\d\,]/g,'');" placeholder="0"/>
                                                    <div class="zw-cell-unit">件</div>
                                                </div>

                                            </div>
                                        </div>
                                        <span style="display: inline-block;width: 10px;line-height: 36px;margin:0 5px;"></span>
                                        <div class="table-input">
                                            <div class="memgift-form-item">
                                                <div class="memgift-form-item-content">
                                                    <input type="text" class="text-input" name="seckill_price[{$vo.goods_id}]" value="{gt name='$vo.seckill_price' value='0'}{$vo.seckill_price}{/gt}" {eq name="$fetch" value="view"}disabled{/eq} onkeyup="this.value=this.value.replace(/[^\d\.]/g,'');" onpaste="this.value=this.value.replace(/[^\d\.]/g,'');" />
                                                    <div class="zw-cell-unit">元</div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                {else /}
                                    <div class="integral-set" {eq name="$vo.spec_set" value="1"} style="display: none;" {/eq}>
                                        <a id="set_spec_{$vo.aid}" {neq name="$fetch" value="view"}onclick="openFullframe(this, '设置秒杀价格及库存', '1150px', '720px');"{/neq} data-href="{:weapp_url('Seckill/Seckill/multi_specification_list',['aid'=>$vo.aid,'goods_id'=>$vo.goods_id])}">设置秒杀价格及库存</a>
                                    </div>
                                    <div class="integral-set" {eq name="$vo.spec_set" value="0"} style="display: none;" {/eq}>
                                        <a class="green" href="javascript:void(0);" onclick="openFullframe(this, '编辑秒杀价格及库存', '1150px', '750px');" data-href="{:weapp_url('Seckill/Seckill/multi_specification_list',['aid'=>$vo.aid,'goods_id'=>$vo.goods_id,'fetch'=>$fetch])}">编辑秒杀价格及库存</a>
                                    </div>
                                {/eq}
                            </div>
                        </td>
                        <td class="w100">
                            <div class="memgift-table-con w100"><a class="{eq name='$fetch' value='view'}color-no-drop no-drop{/eq}" onclick="del_arc('{$vo.aid}');">删除</a></div>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{/notempty}

